package com.wgy.day18.多态.向上转型和向下转型;

public class Cat extends Animal {
    @Override
    public void eat() {
        System.out.println("猫吃鱼");//子类覆盖重写了父类抽象方法

    }
    public void catchMouse(){
        System.out.println("猫抓老鼠"); //子类特有方法
    };


}
